const map = new Map()
const weakMap = new WeakMap()

;(()=>{
    const objOne = {a:1};
    const objtwo = {b:2};

    map.set(objOne,1);
    weakMap.set(objtwo,2);
})();

console.log('objOne = ', map.keys());
console.log('objTwo = ',weakMap);